<?php
namespace Emos\Db;

class Exception extends \Exception {
    var $sql = '';
    var $message = '';
    
    public function __construct($message, $sql=null) {        
        $this->message = $message;
        $this->sql = $sql;        
    }
    
    public function __toString() {
        return "{$this->message}; SQL: {$this->sql}\n";
    }
}
